package org.dlsu.pdfgen.gui;

import javax.swing.JFrame;

public class windowFunction {
	
	public void oneWindow(final JFrame frame, JFrame f){
		frame.setEnabled(false);
		f.addWindowListener(new java.awt.event.WindowAdapter()   
	      {  
	        public void windowClosing(java.awt.event.WindowEvent e )   
	        { 
	        	frame.setEnabled(true);
	        }
	      }
		);
	}

}
